package wh.coach._class;

/**
 * @author hangwen
 * @date 2023/6/20
 */
public class Base {

    private static String NAME = "Base";

    private String name = "baseName";

    public Base() {
        System.out.println(this.getClass().getSimpleName() + ",执行Base()");
    }

    public Base(final String name) {
        System.out.println(this.getClass().getSimpleName() + ",执行Base(name)");
        this.name = name;
    }

    public static String getNAME() {
        return Base.NAME;
    }

    public String getName() {
        return name;
    }

    protected String getProtectedName() {
        return "protected," + getName();
    }

    String getPackageName() {
        return "in package," + this.getName();
    }

}
